<template>
  <div class="item">热门城市</div>
  <ul class="ul">
    <li class="hot-val" v-for="item in hotCity.cities" :key="item.cityId">
      {{ item.name }}
    </li>
  </ul>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  computed: mapGetters("city", ["hotCity"]),
};
</script>

<style lang="less" scoped>
.item {
  height: 30px;
  line-height: 30px;
  padding-left: 25px;
  font-size: @m-font;
  background-color: #ddd;
}

.ul {
  display: flex;
  flex-wrap: wrap;
}

.hot-val {
  background: #fff;
  width: 29%;
  height: 0.66rem;
  margin: 15px 0;
  margin-left: 4%;
  padding: 0 0.08rem;
  border: 0.02rem solid #e6e6e6;
  border-radius: 0.06rem;
  line-height: 0.66rem;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: @m-font;
}
</style>
